import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:star_author/config/ui_constant.dart';

//横线
class HLine extends StatelessWidget {
  const HLine(this.width, {Key? key, this.color}) : super(key: key);
  final double width;
  final Color? color;

  @override
  Widget build(BuildContext context) {
    return Container(
      width: width,
      height: 0.5.w,
      color: color ?? UIConstant.colorEE,
    );
  }
}
